package com.xwj.common.enums;

/**
 * @author xwj
 * @date 2020/4/27
 */
public enum StatusCode {
    SUCCESS(200, "操作成功"),
    ERROR(500, "操作失败"),
    INVALID_PARAM(600, "参数异常");
    private Integer code;
    private String msg;

    StatusCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
